home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / flex / local.mk < prev    next >
Encoding:
Makefile  |  1989-10-19  |  918 b   |  38 lines

  1. #
  2. # This file is included by Makefile.  Makefile is generated automatically
  3. # by mkmf, and this file provides additional local personalization.  The
  4. # variable SYSMAKEFILE is provided by Makefile;  it's a system Makefile
  5. # that must be included to set up various compilation stuff.
  6. #
  7.  
  8. LEX = $MACHINE.md/flex
  9. CFLAGS += -DDEFAULT_SKELETON_FILE=\"/sprite/lib/flex/flex.skel\"
  10.  
  11.  
  12. #include    <$(SYSMAKEFILE)>
  13.  
  14. parse.c: parse.y
  15.     yacc -vd parse.y
  16.     mv y.tab.c parse.c
  17.  
  18. parse.h: parse.c
  19.     - if test ! -f y.tab.h; then \
  20.         yacc -d parse.y; \
  21.         rm -f y.tab.c; \
  22.     fi
  23.     - if test -f parse.h; then \
  24.        if cmp parse.h y.tab.h; then \
  25.          echo parse.h unchanged; touch parse.h; rm y.tab.h; \
  26.        else mv y.tab.h parse.h; \
  27.        fi; \
  28.     else mv y.tab.h parse.h; \
  29.     fi
  30.  
  31. #
  32. # Extra stuff to install information in /sprite/lib/flex.
  33. #
  34. install        :: installlib
  35. installlib    :
  36.     $(UPDATE) -m 664 -l $(INSTALLFLAGS) flex.skel /sprite/lib/flex
  37.  
  38.